<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        * {
            padding: 0;
            margin: 0;
        }
        body {
            background-color: #000;
        }
        div {
            position: absolute;
            left: calc(50% - 350px);
            top: 100px;
            width: 400px;
            height: 140px;
            font-size: 100px;
            font-weight: bold;
            /* border: 1px solid #fcc; */

            background-image: url("./eye.jfif");
            background-size: 1600px;
            background-repeat: no-repeat;
            background-position: -1000px -253px;

            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: all 2s;

            text-shadow: 0px 0px 3px #000;
            /* 如果设置了文字填充颜色为透明，则会看到底下的文字阴影 */
            /* 文字阴影在文字下面，在背景图上面 */

            text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
            /* 阴影也可以设置透明度 */

            text-shadow: -5px -5px 3px rgba(255, 0, 255, 0.3),
                         5px 5px 3px rgba(0, 255, 255, 0.3);
        }

        div:hover {
            background-position: -600px -253px;
        }




    </style>
</head>
<body>
    <div>死神来了</div>
</body>
</html>